<?php
require_once("util/DButil.php");
$oid = $_REQUEST["oid"];

$sql = "select "
." d.d_id,d.o_id,d.p_id,d.d_price,d.d_num,d.d_total, p.p_name, p.p_image_url "
." from t_detail d "
." left join t_product p on p.p_id = d.p_id "
." where d.o_id = {$oid}";
$detailArr = query($sql);
?>